package com.xiong.service.impl;

import com.xiong.dao.StudentCourseDao;
import com.xiong.pojo.StudentCourse;

import com.xiong.service.StudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 熊宇
 * @date 2022/4/29 15:57
 * @description
 */
@Service
public class StudentCourseServiceImpl implements StudentCourseService {

    @Autowired
    private StudentCourseDao studentCourseDao;

    @Override
    public StudentCourse selectStudentInfoByStudentId(Long id) {
        return studentCourseDao.selectStudentInfoByStudentId(id);
    }

    @Override
    public int selectCountByCourseId(Long courseId) {
        return studentCourseDao.selectCountByCourseId(courseId);
    }
}
